//
// Created by 罗宋汤 on 15/8/28.
// Copyright (c) 2015 CHANJET. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CSPNetworking.h"

@class CSPRequestConfig;
@class CSPNetworkingRequest;

@interface CSPURLSessionManager : NSObject <NSURLSessionDelegate, NSURLSessionDataDelegate>

@property (nonatomic, strong) CSPRequestConfig *configuration;

- (instancetype)initWithConfiguration:(CSPRequestConfig *)configuration;

- (void)dataTaskWithRequest:(CSPNetworkingRequest *)request completionHandler:(CSPNetworkingCompletionHandlerBlock)completionHandler;

@end